package com.focusai.efairy.model.user;

/**
 * Created by luo_guangwen on 2017/8/12.
 */

public class User {
    public final static int SUPERADMIN = 0;
    public final static int ONEDISTRIBUTOR = 1;
    public final static int TWODISTRIBUTOR = 2;
    public final static int PROJECTADMIN = 3;
    public final static int NORMALUSER = 4;
    private  int efairyuser_id; // 用户唯一id
    private  String efairyuser_nickname; // 昵称
    private  String efairyuser_headimg_url;// 头像url地址
    private  String efairyuser_coutry; // 国籍
    private  String efairyuser_city; // 城市
    private  String efairyuser_province; // 省份
    private  int efairyuser_sex; // 性别：0-未知 1-男 2-女
    private  String efairyuser_last_login_time; // 最近登录时间
    private  int efairyuser_last_login_method;// 最近登录方式：0-手机 1-微信
    private int efairyrole_level; // 0-超级管理员 1-一级经销商 2-二级经销商 3-项目管理员 4-普通用户， V1.1新增参数
    public int getEfairyuser_id() {
        return efairyuser_id;
    }

    public void setEfairyuser_id(int efairyuser_id) {
        this.efairyuser_id = efairyuser_id;
    }

    public String getEfairyuser_nickname() {
        return efairyuser_nickname;
    }

    public void setEfairyuser_nickname(String efairyuser_nickname) {
        this.efairyuser_nickname = efairyuser_nickname;
    }

    public String getEfairyuser_headimg_url() {
        return efairyuser_headimg_url;
    }

    public void setEfairyuser_headimg_url(String efairyuser_headimg_url) {
        this.efairyuser_headimg_url = efairyuser_headimg_url;
    }

    public String getEfairyuser_coutry() {
        return efairyuser_coutry;
    }

    public void setEfairyuser_coutry(String efairyuser_coutry) {
        this.efairyuser_coutry = efairyuser_coutry;
    }

    public String getEfairyuser_city() {
        return efairyuser_city;
    }

    public void setEfairyuser_city(String efairyuser_city) {
        this.efairyuser_city = efairyuser_city;
    }

    public String getEfairyuser_province() {
        return efairyuser_province;
    }

    public void setEfairyuser_province(String efairyuser_province) {
        this.efairyuser_province = efairyuser_province;
    }

    public int getEfairyuser_sex() {
        return efairyuser_sex;
    }

    public void setEfairyuser_sex(int efairyuser_sex) {
        this.efairyuser_sex = efairyuser_sex;
    }

    public String getEfairyuser_last_login_time() {
        return efairyuser_last_login_time;
    }

    public void setEfairyuser_last_login_time(String efairyuser_last_login_time) {
        this.efairyuser_last_login_time = efairyuser_last_login_time;
    }

    public int getEfairyuser_last_login_method() {
        return efairyuser_last_login_method;
    }

    public void setEfairyuser_last_login_method(int efairyuser_last_login_method) {
        this.efairyuser_last_login_method = efairyuser_last_login_method;
    }

    public int getEfairyrole_level() {
        return efairyrole_level;
    }

    public void setEfairyrole_level(int efairyrole_level) {
        this.efairyrole_level = efairyrole_level;
    }

    public static String getRoleName(int roleId){
        String name = "";
        switch (roleId){
            case 0:
                name = "超级管理员";
                break;
            case 1:
//                name = "一级经销商";
                name = "总监+";

                break;
            case 2:
//                name = "二级经销商";
                name = "总监";

                break;
            case 3:
                name = "项目管理员";

                break;
            case 4:
                name = "普通用户";

                break;
            default:
                break;
        }
        return name;
    }
}
